<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>1111111111</title>

  <button onclick="send()">提交</button>
	<iframe id="child2" src="http://192.168.166.135:8005/index2.html?a=11" frameborder="0"></iframe>



</head>
<body>

66666666666666666666

<script type="text/javascript">

  function send(){

    console.log(">>>>>>>>>>>>>>>>>>>>>")
    document
      .getElementById('child2')
      .contentWindow.postMessage(
        JSON.stringify({data:123123}),
        'http://192.168.166.135:8005'
      )

     
  }





</script>
	
</body>
</html>